<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkFlowConfigs
 *
 * @ORM\Table(name="tk_flow_configs", indexes={@ORM\Index(name="vccId", columns={"vcc_id"})})
 * @ORM\Entity
 */
class TkFlowConfigs
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false)
     */
    private $vccId;

    /**
     * @var bool
     *
     * @ORM\Column(name="receive_type", type="boolean", nullable=false, options={"default"="1","comment"="工单领取方式(1随机2指定)"})
     */
    private $receiveType = '1';

    /**
     * @var int
     *
     * @ORM\Column(name="max_tickets", type="integer", nullable=false, options={"comment"="领取的最多未处理工单数，0为不限"})
     */
    private $maxTickets = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="limit_tickets", type="integer", nullable=false, options={"default"="1","comment"="随机领取最大值，默认为1"})
     */
    private $limitTickets = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="api_url", type="string", length=255, nullable=false, options={"comment"="第三方API接口地址"})
     */
    private $apiUrl;

    /**
     * @var bool
     *
     * @ORM\Column(name="api_request_method", type="boolean", nullable=false, options={"default"="1","comment"="请求方法(1get2post)"})
     */
    private $apiRequestMethod = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="api_response_fields", type="string", length=255, nullable=false, options={"comment"="响应结果字段"})
     */
    private $apiResponseFields;

    /**
     * @var int
     *
     * @ORM\Column(name="if_repeat_ticket", type="smallint", nullable=false, options={"comment"="重复工单限制"})
     */
    private $ifRepeatTicket = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="repeat_time", type="integer", nullable=false, options={"comment"="重复时间（单位小时）"})
     */
    private $repeatTime;

    /**
     * @var int
     *
     * @ORM\Column(name="if_name_required", type="integer", nullable=false, options={"comment"="客户名称是否必填（0必填 1选填）"})
     */
    private $ifNameRequired = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="if_phone_required", type="integer", nullable=false, options={"comment"="客户电话是否必填（0必填 1选填）"})
     */
    private $ifPhoneRequired = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="flow_del", type="string", length=255, nullable=false, options={"comment"="被删除的工单类型(格式1,2,3,4)"})
     */
    private $flowDel = '';

    /**
     * @var int
     *
     * @ORM\Column(name="if_export_log", type="integer", nullable=false, options={"comment"="是否导出工单日志（1是0否）"})
     */
    private $ifExportLog = '0';


}
